-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Allow fully qualified or short references to be used to generate "reference" Uri #2110
Conversation
Codecov Report
@@ Coverage Diff @@
## master #2110 +/- ##
==========================================
+ Coverage 66.84% 66.86% +0.01%
==========================================
Files 542 542
Lines 14221 14241 +20
==========================================
+ Hits 9506 9522 +16
- Misses 4715 4719 +4 |
5a5d6e1
to
eae8607
Compare
public IObservable<Reference> GetAllForSubNamespace(string owner, string name, string subNamespace, ApiOptions options) | ||
{ | ||
Ensure.ArgumentNotNullOrEmptyString(owner, nameof(owner)); | ||
Ensure.ArgumentNotNullOrEmptyString(name, nameof(name)); | ||
Ensure.ArgumentNotNullOrEmptyString(subNamespace, nameof(subNamespace)); | ||
Ensure.ArgumentNotNull(options, nameof(options)); | ||
|
||
if (subNamespace.StartsWith("refs/")) | ||
{ | ||
subNamespace = subNamespace.Replace("refs/", string.Empty); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I ended up going with this approach to make the fixes more explicit, and I'd like to eventually do away with the ApiUrls
shorthand because it makes correlating things to API routes harder...
release_notes: Added support for handling fully qualified references in |
Supersedes #1934
Fixes #1933
refs
refs